/*
 * Copyright © 2017 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

$border: 1px solid #dedede;

.triggered-pipeline-content {
  padding: 15px;

  .triggered-pipeline-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
  }

  .triggered-pipeline-count {
    margin-bottom: 10px;
  }

  .pipeline-list-header {
    font-weight: bold;
    border-bottom: $border;
    padding: 5px 0;

    .pipeline-name,
    .namespace { text-decoration: underline; }
  }

  .caret-container,
  .pipeline-name,
  .namespace {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
  }

  .caret-container {
    width: 25px;
  }

  .pipeline-name {
    width: calc(100% - 25px - 100px);
  }

  .namespace {
    width: 100px;
  }

  .triggered-pipeline-row {
    border-bottom: $border;
    cursor: pointer;
    padding: 5px 0;
  }

  .triggered-pipeline-expanded-row {
    border-bottom: 3px solid #dedede;
    border-top: 2px solid #dedede;
    padding: 5px 5px 15px 5px;
    background-color: #efefef;

    .header-row {
      margin-left: -5px;
      margin-right: -5px;
      font-weight: bold;
      cursor: pointer;
    }

    .pipeline-description {
      margin-top: 10px;
      margin-bottom: 10px;
      color: #888888;

      a { margin-left: 5px; }
    }

    .helper-text { margin-bottom: 5px; }
  }
}
